package handler

import (
	"bytes"
	"encoding/binary"

	"github.com/cz-it/gonnectd/src/proto"
)

type Ping struct {
}

func NewPing() *Ping {
	ping := new(Ping)
	return ping
}

func (ping *Ping) Proc(body proto.Body) []byte {
	buf := new(bytes.Buffer)
	binary.Write(buf, binary.BigEndian, []byte("abc"))
	return buf.Bytes()
}
